<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jspf/taglibs.jspf"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>订单查询</title>
		<style type="text/css">
		.actived{color:red;}
		.td{border:solid #add9c0; border-width:0px 1px 1px 0px; padding-left:10px; text}
		.textalign{text-align:right; width:20%;}
		.table{border:solid #add9c0; border-width:1px 0px 0px 1px;}
		</style>
		<%@ include file="/WEB-INF/jspf/statics.jspf"%>
	</head>
<body>
	<%@include file="/WEB-INF/pages/common/header.jsp" %>
	<%@include file="/WEB-INF/pages/common/menu.jsp" %>
	<div id="rightqqqq" style="border-left-style:groove ;float:left;width:88%;height:10px;margin-left:4px;min-height:80%;overflow-y:auto; overflow-x:hidden; ">
		<div id="navContainer" class="navC mb10" style="margin-top:10px;">  
		        <ul>  
		         	<li class="current"><a onclick="invoiceRule();" hidefocus="true">领票规则</a></li>  
		            <li><a  onclick="updateInvoiceRule();" hidefocus="true">修改规则</a></li>  
		        </ul>  
   			 </div>  
		<table class="table">
			<tr style="">
				<td class="td textalign">是否允许二次进馆</td>
				<td class="td"><c:if test="${ invoiceRule.secondeAccess==1}">允许</c:if><c:if test="${ invoiceRule.secondeAccess!=1}">禁止</c:if></td>
			</tr>
			<tr>
				<td class="td textalign">进馆时间间隔(小时)</td>
				<td class="td">${invoiceRule.loginInterval }</td>
			</tr>
			<tr>
				<td class="td textalign">取票时间间隔(单位小时)</td>
				<td class="td">${invoiceRule.invoiceInterval }</td>
			</tr>
			<tr>
				<td class="td textalign">网上取票</td>
				<td class="td"><c:if test="${ invoiceRule.invoiceOnline==1}">允许</c:if><c:if test="${ invoiceRule.invoiceOnline!=1}">禁止</c:if></td>
			</tr>
			<tr>
				<td class="td textalign">取票上限</td>
				<td class="td">${invoiceRule.maxInvoiceNum }</td>
			</tr>
			<tr>
				<td class="td textalign">上限提示信息</td>
				<td class="td">${invoiceRule.information }</td>
			</tr>
			<tr>
				<td class="td textalign">服务电话</td>
				<td class="td">${invoiceRule.hotline }</td>
			</tr>
			<tr>
				<td class="td textalign">前段退出密码</td>
				<td class="td">${invoiceRule.password }</td>
			</tr>
			<tr>
				<td class="td textalign">备注</td>
				<td class="td">${invoiceRule.remark }</td>
			</tr>
		</table>
	</div>
	<input type="hidden" id="success" onclick="showMessage('success');">
	<input type="hidden" id="fail" onclick="showMessage('fail');">
</body>
</html>
<script type="text/javascript">
	$().ready(function(){
		$('#navigation').accordion({
			header: '.head',
			navigation1: true, 
			event: 'click',
			autoHeight:true,
			active:0,
			animated: 'bounceslide'
		});
		$("a[class='actived']").removeAttr("class");
		$("#invoiceRule").attr("class", "actived");
		$("#currentPosition").text("当前位置：票务管理 > 领票规则");
	});
	function invoiceRule(){
		window.location.href="${ctx}/equipment/invoice_rule";
	}
    function showMessage(result){
    	if(result=="success"){
    		Showbo.Msg.alert('操作成功!');	
    	}else{
    		Showbo.Msg.alert('操作失败!');
    	}
    }
    
	function updateInvoiceRule(){
		var str_href = "${ctx}/equipment/update_invoice_rule";
    	dialog_iframe({url: str_href, title: "修改取票规则", width: 700, height:500});
	}
</script>